package com.fastCms.business.bim.daos;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fastCms.business.bim.pojo.entity.Device;
import com.fastCms.business.bim.pojo.po.DeviceListPO;
import com.fastCms.business.bim.pojo.po.ProdPO;
import com.fastCms.business.bim.pojo.po.DeviceParamPO;
import com.fastCms.business.bim.pojo.vo.ClearCarBillVO;
import com.fastCms.business.bim.pojo.vo.DeviceInfoVO;
import com.fastCms.business.bim.pojo.vo.DeviceVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 设备主表 Mapper 接口
 * </p>
 *
 * @author liusq
 * @since 2021-03-25
 */
@Repository
public interface DeviceMapper extends BaseMapper<Device> {

    DeviceInfoVO showInfo(@Param("deviceId") Integer deviceId);

    List<DeviceInfoVO> getVideoList(Integer hikversion);

    List<DeviceInfoVO> showList(DeviceListPO pageParam);

    List<DeviceVO> getCCQProdDevice(ProdPO queryFields);

    List<DeviceVO> getProdDevice(ProdPO queryFields);

    List<DeviceVO> getDeviceList(DeviceParamPO param);

    List<ClearCarBillVO> getClearCarDevice(@Param("deviceTypeId") Integer deviceTypeId);


}
